package asteroids.model.programs.Expression;

import asteroids.model.programs.Type;
import be.kuleuven.cs.som.annotate.Basic;

/**
* 
* @version 0.3
* @author  Tandan Sunil, Van Deun Luca
*
*/
public class DoubleLiteral extends BasicExpression implements IDoubleExpression{

	public DoubleLiteral(int line, int column,double value) {
		super(line, column, new Type(Type.AllType.DOUBLE));
		this.value= value;
	}
	
	
	private double value;
	
	/**
	 * Returns the value of this double literal.
	 */
	@Override @Basic
	public double getValue() {
		return this.value;
	}

}
